import { Layout } from '@fl/utils/routerHelper'

const seckillManage: AppRouteRecordRaw = {
    children: [
        {
            component: () => import('@/pages/marketing-promotion/seckill-manage/seckill-active/index.vue'),
            meta: {
                icon: 'i-mingcute:coupon-line',
                title: '秒杀活动',
            },
            name: 'seckill-active',
            path: 'seckill-active',
            children: [
                {
                    component: () => import('@/pages/marketing-promotion/seckill-manage/seckill-active/index.vue'),
                    meta: {
                        icon: 'i-ic:outline-discount',
                        title: '秒杀活动列表',
                    },
                    name: 'seckill-active-list',
                    path: 'seckill-active-list',
                },
                {
                    component: () => import('@/pages/marketing-promotion/seckill-manage/seckill-active/addOrUpdate.vue'),
                    meta: {
                        icon: 'i-ic:outline-discount',
                        title: '新增秒杀活动',
                        activeMenu: '/marketing-promotion/seckill-manage/seckill-active/seckill-active-list',
                        hidden: true,
                        noTagsView: false,
                    },
                    name: 'seckill-active-add',
                    path: 'seckill-active-add',
                },
            ],
        },
        {
            component: () => import('@/pages/marketing-promotion/seckill-manage/contract-person/index.vue'),
            // component: () => import('@/pages/marketing-promotion/seckill-manage/seckill-active/index.vue'),
            meta: {
                icon: 'i-mingcute:coupon-line',
                title: '楼盘联系人',
            },
            name: 'contract-person',
            path: 'contract-person',
        },
        {
            component: () => import('@/pages/marketing-promotion/seckill-manage/seckill-order/index.vue'),
            meta: {
                icon: 'i-ic:outline-discount',
                title: '秒杀订单',
            },
            name: 'seckill-order',
            path: 'seckill-order',
        },
    ],
    component: Layout,
    meta: {
        alwaysShow: true,
        icon: 'i-material-symbols-light:browse-activity-outline-rounded',
        title: '秒杀活动',
    },
    name: 'seckill-manage',
    path: 'seckill-manage',
}

export default seckillManage
